package com.java.minxi.java_20240506.java_2301_孙先优_2344310146;

public class Car extends Vehicles{
    @Override
    public void travel() {
        System.out.println("开着"+ getColor()+getBrand()+getType()+"前往"+getAddress()+"旅游" );
    }
    public String combination(String color ,String brand){
        return color+brand;
    }
    public String combination(String brand){
        return brand;
    }
}
